package ms.maplestory.boot;


import java.nio.charset.Charset;

public class ServerConstants {

    public static final byte[] LOGIN_IP = new byte[]{(byte) 127, (byte) 0, (byte) 0, (byte) 1};
    public static final int LOGIN_PORT = 8484;
    public static final boolean CLOSE_PIN_CODE = true;

    public static final short VERSION = 95;
    public static final String MINOR_VERSION = "1";
    public static final boolean DECRYPT_DATA_ENABLE = true;
    public static final byte[] KEY = new byte[]{0x13, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, (byte) 0xB4, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00};
    public static final byte LOCALE = 8; // 7 = MSEA, 8 = GlobalMS, 5 = Test Server 2 = OmniBeta
    public static final Charset CHARSET = Charset.forName("GBK");
    public static final String DIR = System.getProperty("user.dir");
    public static final String WZ_DIR = DIR + "/wz";
    public static final String DAT_DIR = DIR + "/dat";

    public static int generatorChannelPort(int worldId, int channelId) {
        return LOGIN_PORT + (100 * worldId) + channelId;
    }
}